              <?php #//AJAX PHP PENNY AUCTION v.1.1

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
?>


    <? /*
 
 <!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!----------- The Following Varaibles Are Available For Use In The ITEM PAGE ------------->
<!-- The $variable name must be not changed in order for the item show in the browser -------->
<!-- You can place these variables between <DIV> </DIV> or <SPAN> </SPAN> tags for CSS markup --------->
<!-- NOTE: To use a $variable it needs to be placed in PHP < ? ? > brackets as you can see below ------>

                                      <!--
Categories List 
----------------------------------------- 
$categories_select        Setup In Admin
$categories_list          Setup In Admin   
                       
Current Time 
----------------------------------------      
$current_date_time        Setup In Admin
                                          
User Counter
----------------------------------------        
$users_online_counter 
                                         
Page Info 
----------------------------------------                                 
$page_title               Setup In Admin   
$logo                     Setup In Admin       
$meta_tag_description     Setup In Admin       
$meta_tag_keywords        Setup In Admin       
$banner                   Setup In Admin       
                                       
Login Form
----------------------------------------                                
$header_login_form_complete   
$header_login_form_start  
$header_login_form_username_label     
$header_login_form_username_input    
$header_login_form_password_label    
$header_login_form_password_input    
$header_login_form_remember_me_checkbox_and_label  
$header_login_form_remember_me_hidden     
$header_login_form_submit_button         
$header_login_form_forgot_password_link    
$header_login_form_end     
                              
Search Form 
----------------------------------------                  
$search_form     
                             
Links
----------------------------------------                       
$home_link      
$logout_link           
$register_link           
$user_login_link    
$forgot_password_link  
$search_link          
$browse_categories_link 
$buy_bids_link  
$about_us_link  
$contact_us_link 
$help_link      
$feedback_link  
$live_auction_link 
$upcoming_auction_link  
$send_to_a_friend_link  
$privacy_policy_link 
$terms_and_conditions_link 
 
** These links should only be 
** shown to logged in users.

$edit_profile_link 
$item_watch_link  
$user_bids_link  
$user_wins_link  
$user_payments_link 

Plain Text Info                         
-----------------------------------------
$user_email		             
$user_real_name            
$user_name                
$user_bids_remaining      

ITEM PAGE ONLY VARIABLES
----------------------------------------- 
$MSG_041 = "Item Category"
$item_category_heading
$item_photo_gallery 
$item_title 
$item_auction_id  
$item_photo_gallery_main_link 
$tell_a_friend_link  
$watch_item_link  
$item_bid_history_link 
$item_retail_price
$item_current_bid 
$item_current_high_bidder 
$item_custom_increment 
$item_number_of_bids_total 
$item_payments_accepted 
$item_shipping_terms   
$item_shipping_fee  
$item_return_policy   
$item_page_counter 
$item_description  
                     
     -->    
<!---------------- End ITEM Display Variables ------------------->      


 */
 
 ?>
      
            <? 
       
       $tabid = 0;
  include "tab_menu.php";
  $subtabid = "logout";
  include "tab_submenu.php";
  include "category_menu.php";
  $page_title_text = "Live Auction Item";
  $page_title_note = "";
  include "item_page_title.php";
  ?>            
      
     <? print $tab_menu ?>
     <? print $tab_submenu ?>
     <? print $category_menu ?>  
     <? print $item_page_title_content_box_start; ?>
 
 


    
<!-- <DIV CLASS=ITEM_CATEGORY_LABEL_TEXT>$MSG_041 = "Category"$MSG_041 ?>:</DIV><DIV CLASS=ITEM_CATEGORY_TEXT> $item_category_heading; ?> </DIV>        -->


        





    
<DIV CLASS="ITEM_MAIN_PICTURE_BOX">

<DIV CLASS="ITEM_MAIN_PICTURE">

<? print $item_photo_gallery_main_link; ?> 

</DIV>

<? print $item_photo_gallery; ?>

</DIV>

 
  

<DIV CLASS="ITEM_TITLE_TEXT">
 <? print $item_title; ?>
 </DIV>

<DIV CLASS="ITEM_TITLE_LINE"></DIV>








<DIV CLASS="ITEM_AUCTION_ID_TEXT">
Auction ID: 222<? print $item_auction_id; ?> 
</DIV>


<DIV CLASS="ITEM_TELL_A_FRIEND_LINK">
 <? print $tell_a_friend_link; ?>
 </DIV>
 
<DIV CLASS="ITEM_ADD_TO_WATCH_LINK"> 
 <? print $watch_item_link; ?> 
</DIV>


<DIV CLASS="ITEM_RETAIL_PRICE_TEXT">
<span id="retailprice" style=display:none; >$item_retail_price</span>
Retail Value: <? print $currency_symbol; ?><? print print_money_nosymbol($item_retail_price); ?>
</DIV>



                                    <DIV class=ITEM_BOX >

<DIV CLASS="ITEM_CURRENT_BID_BOX">

<DIV CLASS="ITEM_CURRENT_BID2_TEXT" ID="ITEM_CURRENT_BID1">

<span id=reserve_currency_symbol_get ><? print $currency_symbol; ?></span><SPAN ID="itemcurrentbid1"><? print print_money_nosymbol($item_current_bid); ?></SPAN> <FONT COLOR=#888888 SIZE=-4><? print $currency; ?></FONT>

</DIV>

<DIV CLASS="ITEM_CURRENT_BIDDER_TEXT">

BIDDER: <SPAN ID="item_current_bidder1"><? print $current_high_bidder ?></SPAN>

</DIV>
</DIV>







<DIV CLASS="ITEM_CURRENT_TIME_BOX" ID="time">
</DIV>
    
    
    
    
    
    
<DIV CLASS="ITEM_BID_BUTTON_BOX">
<DIV CLASS="ITEM_BID_BUTTON_GRAPHIC">


<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!-- IT IS OKAY TO CHANGE THE IMAGES BELOW FOR THE BID BUTTON -->
<!-- IS STRONGLY SUGGESTED THAT YOU LEAVE THE REST ALONE -->

<!--NOTE: There is also an image in the ItemPageInfo 
      Javascript Function Located in the global_ajax.js in the JS directory -->  



               <?  
               if(!$not_open )   {
        IF($_SESSION["PHPAUCTION_LOGGED_IN"]) {
          	/* user is logged in, give link to edit data or log out */
	  	?>

<A ONMOUSEOVER="button('itembidbutton','images/bid_button_large_3.jpg'); this.style.cursor='pointer'" 
                              
                              
ONCLICK="bid('<? print $item_auction_id; ?>'); 


button('itembidbutton','images/bid_button_large_4.jpg')"


ONMOUSEOUT="button('itembidbutton','images/bid_button_large_1.jpg')" ID="iibb">

<IMG  SRC="images/bid_button_large_1.jpg" NAME="itembidbutton" ID="ibb" BORDER="0" ALT='Bid Button'>

</A>

<?     } ELSE {
           
          	/* user not logged in, give link to register or login */
		?>

     <A HREF="user_login.php" ID="iibb">
     <IMG SRC="images/bid_button_large_2.jpg" NAME="itembidbutton" ID="ibb" BORDER="0" ALT='Login Button'>
     </A>

    <? } } ?>


 
<!---------------------------------------------------------> 
          
 
    <DIV CLASS="ITEM_BID_INCREMENT_TEXT">
Bid Increment: <? print $currency_symbol; ?><? //print $item_custom_increment; ?><? print print_money_nosymbol($item_custom_increment); ?>
</DIV>
   <DIV CLASS="ITEM_BID_INCREMENT_TEXT">
Bid Credits Required: <? print $bid_credits_reqd1; ?>
</DIV> 
  <DIV CLASS="ITEM_BID_INCREMENT_TEXT">
Time Ext. Activate:
Last <? print $auto_extend_activated; ?> Sec.
</DIV>     
   <DIV CLASS="ITEM_BID_INCREMENT_TEXT">
Time Ext. Increment: <? print $auto_extend_incremented; ?> Sec.
</DIV>        
 </DIV>   
<SPAN CLASS="ITEM_BID_INCREMENT_TEXT" id="item_reserve_price" style="letter-spacing: -1px; font-size:12px; font-weight:bold;" >
  
    
    </SPAN>
     

    </DIV>  
    
    
    <DIV CLASS="ITEM_BID_HISTORY_BOX">
    
    <DIV CLASS="ITEM_BID_HISTORY_HEADINGS_TEXT">
    
  Amount:&nbsp;&nbsp;Bidder:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Time:  <font color=red size=-2 > *Autobidder</font>  
    
    
    </DIV>
    
    
    <DIV CLASS="ITEM_BID_HISTORY_AMOUNT_TEXT">
    
<? print $currency_symbol; ?><SPAN ID="bidamount11"> -- </SPAN><BR>
<? print $currency_symbol; ?><SPAN ID="bidamount22"> -- </SPAN><BR>
<? print $currency_symbol; ?><SPAN ID="bidamount33"> -- </SPAN><BR>
<? print $currency_symbol; ?><SPAN ID="bidamount44"> -- </SPAN><BR>
<? print $currency_symbol; ?><SPAN ID="bidamount55"> -- </SPAN><BR>
    
    </DIV>
    
        <DIV CLASS="ITEM_BID_HISTORY_BIDDER_TEXT">
    
<SPAN ID="bidder11"> -- </SPAN><BR>
<SPAN ID="bidder22"> -- </SPAN><BR>
<SPAN ID="bidder33"> -- </SPAN><BR>
<SPAN ID="bidder44"> -- </SPAN><BR>
<SPAN ID="bidder55"> -- </SPAN><BR>
    
    </DIV>
    
            <DIV CLASS="ITEM_BID_HISTORY_TIME_TEXT">
    
    
<SPAN ID="time11"> -- </SPAN><BR>
<SPAN ID="time22"> -- </SPAN><BR>
<SPAN ID="time33"> -- </SPAN><BR>
<SPAN ID="time44"> -- </SPAN><BR>
<SPAN ID="time55"> -- </SPAN><BR>


    
    </DIV>
   
    <DIV CLASS="ITEM_BID_HISTORY_NUMBER_OF_BIDS_TEXT">
    
    Number of Bids: <SPAN ID=bids2><? print $item_number_of_bids_total; ?></SPAN> &nbsp;&nbsp;&nbsp;
  
     </DIV>
  
  <DIV CLASS="ITEM_BID_HISTORY_LINK_TEXT">
  
  <? print $item_bid_history_link; ?>   
    
    </DIV>
    </DIV>
           
           
                            
  <? if ( $autobidder_activated == 1 && $win_limits != 1 && $allow_autobidder2 == 1 ) {  ?>
    
       <FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>

    
  <DIV CLASS="ITEM_AUTOBIDDER_BOX">
       <div class="EDITDATA3">
   <DIV CLASS="ITEM_AUTOBIDDER_MAXPRICE_TEXT">
     Maximum Bid Price
    </DIV>
       
      <DIV CLASS="ITEM_AUTOBIDDER_MAXPRICE_INPUT">
 <input type=text class=EDITDATA44 name=maxprice size=4 maxlength=8 value="<?=$maxprice ?>" />
        </DIV>
  
        <DIV CLASS="ITEM_AUTOBIDDER_MAXBIDS_TEXT">
     Maximum Bids To Use
    </DIV>
      <DIV CLASS="ITEM_AUTOBIDDER_MAXBIDS_INPUT">
 <input type=text class=EDITDATA44 name=maxbids size=4 maxlength=8 value="<?=$maxbids ?>" />
        </DIV>
             <DIV CLASS="ITEM_AUTOBIDDER_BUTTON">
<input type=submit name="" value="Update" class=button  />
          </DIV>
     <DIV CLASS="ITEM_AUTOBIDDER_HELP_TEXT">
     <a href=autobidder.php >Autobidder<BR>
              Help & Strategy</A>
    </DIV>    
   </DIV>
  </DIV>
                 <input type=hidden class=EDITDATA44 name=userid size=4 maxlength=8 value="<?=$userid ?>" />
                 <input type=hidden class=EDITDATA44 name=itemid size=4 maxlength=8 value="<?=$itemid ?>" />
                 <input type=hidden class=EDITDATA44 name=update_autobidder size=4 maxlength=8 value="1" />
     </form>
    
               
  <? } ?>        
           
          
           <? if ( $autobidder_activated == 0 || $allow_autobidder2 == 0 ) {  ?>
    
       <FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>

 <input type=hidden class=EDITDATA44 name=maxbids size=4 maxlength=8 value="<?=$maxbids ?>" />

     </form>
    
               
  <? } ?>  
  
  

      <? if ( $autobidder_activated == 1 && $win_limits == 1 && $allow_autobidder2 == 1 ) {  ?>
            <DIV CLASS="ITEM_AUTOBIDDER_BOX">
           
             
   <DIV CLASS="ITEM_AUTOBIDDER_LIMIT_TEXT">
    <font color="red" ><? print $win_limit_note; ?></font>
    </DIV>
    
     
                 </DIV>  
        
               <FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>

 <input type=hidden class=EDITDATA44 name=maxbids size=4 maxlength=8 value="<?=$maxbids ?>" />

     </form>
     
       <? } ?>      
           
          </DIV> 
          
                                                               
        
<DIV CLASS="ITEM_SAVINGS_BOX">
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_HEADER">
  Savings        
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_TEXT">
  + Retail Value:        
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_DATA">
  <? print $currency_symbol; ?><? print print_money_nosymbol($item_retail_price); ?>    
  </DIV>  
   <DIV CLASS="ITEM_SAVINGS_BUYNOW_TEXT">
  - Current Bid:        
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_DATA" id="savings_current_bid2">
  <? print $currency_symbol; ?><? print print_money_nosymbol($item_current_bid); ?>       
  </DIV>  
 <DIV CLASS="ITEM_SAVINGS_BUYNOW_TEXT" id="savings_bids_text2">
   - Bids Credits Used x <? print print_money_nosymbol($average_bid_price2); ?>:      
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_DATA" id="savings_bids_total2">
  <? print $currency_symbol; ?><? print print_money_nosymbol($number_of_bids_total); ?>        
  </DIV>    
           <DIV CLASS="ITEM_SAVINGS_BUYNOW_TEXT">
  - Taxes & Shipping Fees:        
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_DATA" id="savings_tsh2">
    <? print $currency_symbol; ?><? print print_money_nosymbol($taxes_shipping_total); ?>     
  </DIV>            
     <DIV CLASS="ITEM_SAVINGS_BUYNOW_LINE"></DIV>    
             <DIV CLASS="ITEM_SAVINGS_TEXT_TOTAL">
  Savings Total:        
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_DATA_TOTAL" id="savings_total">
 <? print $savings_percentage2; ?>% or <? print $currency_symbol; ?><? print print_money_nosymbol($savings_total); ?>      
  </DIV>   
         <DIV CLASS="ITEM_SAVINGS_BUYNOW_LINE"></DIV>  
   </DIV>
         
       
      
<DIV style=display:none; CLASS="ITEM_BUYNOW_BOX">
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_HEADER">
  Buy Now       
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_TEXT">
  + Retail Value:        
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_DATA">
  <? print $currency_symbol; ?><? print print_money_nosymbol($item_retail_price); ?>    
  </DIV>  
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_TEXT" id="buynow_bids_text2">
   - Bids Credits Used x <? print print_money_nosymbol($average_bid_price2); ?>:      
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_DATA" id="buynow_bids_total2">
  <? print $currency_symbol; ?><? print print_money_nosymbol($number_of_bids_total); ?>        
  </DIV>    
           <DIV CLASS="ITEM_SAVINGS_BUYNOW_TEXT">
  + Taxes & Shipping Fees:          
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_BUYNOW_DATA" id="buynow_tsh2">
    <? print $currency_symbol; ?><? print print_money_nosymbol($tax_total_buynow); ?>     
  </DIV>            
            
         <DIV CLASS="ITEM_SAVINGS_BUYNOW_LINE"></DIV>  
             <DIV CLASS="ITEM_SAVINGS_TEXT_TOTAL">
  Buy Now Total:        
  </DIV>
  <DIV CLASS="ITEM_SAVINGS_DATA_TOTAL" id="buynow_total">
  <? print $currency_symbol; ?><? print print_money_nosymbol($buynow_total); ?>      
  </DIV>   
          
         <DIV CLASS="ITEM_SAVINGS_BUYNOW_LINE"></DIV>  
   
   <DIV CLASS="ITEM_BUYNOW_LIMIT_TEXT">
  <font size=-2 >* Buy Now Limit: One Buy Now Purchase Per User Per Auction Item.</font>          
  </DIV> 
  
      <DIV CLASS="ITEM_BUYNOW_BUTTON">

            <? if($_SESSION["PHPAUCTION_LOGGED_IN"]) { ?>
           <FORM NAME=conf2 ACTION=buynow_paypal_create.php METHOD=POST>
<input type=submit value="Buy Now">
      <input type=hidden class=EDITDATA44 name=id size=4 maxlength=8 value="<?=$item_auction_id ?>" />     
        </form>  
       <? } ?>
                   <? if(!$_SESSION["PHPAUCTION_LOGGED_IN"]) { ?>
           <FORM NAME=conf2 ACTION=user_login.php METHOD=POST>
<input type=submit value="Login">
         </form>  
       <? } ?>
        
  </DIV> 
  
        
   </DIV>   
         
           
           
           
           
           
           
           
           
           
           
  <DIV CLASS="INFO_TEXT">
  <DIV CLASS="ITEM_PAYMENT_TEXT">
  
 <SPAN CLASS="BOLDTEXT"> Payment Methods: </SPAN> <BR>
  <? print $item_payments_accepted; ?>
  </DIV>
  
    <DIV CLASS="ITEM_SHIPPING_TEXT">
  
 <SPAN CLASS="BOLDTEXT"> Shipping & Handling: </SPAN> <BR>
         <? print               $item_shipping_terms   ; ?> 
  Fee: <? print $currency_symbol; ?><? print print_money_nosymbol($item_shipping_fee); ?> <? print $currency; ?>

  </DIV>
  
    <DIV CLASS="ITEM_RETURN_POLICY_TEXT">
  
  
  <SPAN CLASS="BOLDTEXT"> Return Policy: </SPAN> <BR>
  <? print $item_return_policy; ?>
  
  
 <BR>
  
  </DIV>     </DIV>



    
           
           
           
           
           




  
    <DIV CLASS="ITEM_DESCRIPTION_HEADER_TEXT">
  
  
  <STRONG>Description:</STRONG><BR>



  </DIV>
  
  
      <DIV CLASS="ITEM_COUNTER_TEXT">
  
  
  This Auction Has Be Viewed <FONT COLOR=red><SPAN ID=counter1>&#160; <? print $item_page_counter; ?> &#160;</SPAN></FONT> Times.   


  </DIV>
  
  
  
      <DIV CLASS="ITEM_DESCRIPTION_LINE">
  


  </DIV>
  
<DIV CLASS="ITEM_DESCRIPTION_TEXT">
  <? print $item_description; ?>
  
      </DIV>
  
      
       
    <? print $item_page_title_content_box_stop; ?>
            
        <DIV style="display:none" id="endtimee"></DIV>
        <DIV style="display:none" id="currenttimee"></DIV>
        <DIV style="display:none" id="paused"><? print $paused; ?></DIV>
        <DIV style="display:none" id="closed_reserve"><? print $reserve_price; ?></DIV>
        <DIV style="display:none" id="closed_bid"><? print $item_current_bid; ?></DIV>